package cn.tedu.spring.life;

import cn.tedu.spring.scope.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestOrder {
    public static void main(String[] args) {
       AnnotationConfigApplicationContext  context =
               new AnnotationConfigApplicationContext
                ("cn.tedu.spring.life");
        Order bean = context.getBean(Order.class);
        System.out.println("4.使用阶段[getBean()[方法]");
        //关闭IoC容器
        context.close();

    }
}
